<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>detailDepart.jsp</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<style type="text/css">
p span{color: blue;}
</style>
</head>
<body>
	<h2>（院系详情）detailDepart.jsp</h2>
	<p>院系号:<span>${depart.departid }</span><br>
	院系:<span>${depart.name }</span><br>
	院长号:<span>${depart.deanid }</span><br>
	院长:<span>${depart.deanname }</span><br>
	性别:<span>${depart.sex }</span>
	</p>
	
	<table>
	<thead>
		<tr>
			<th>序号</th>
			<th>课程号</th>
			<th>课程名</th>
			<th>学分</th>
			<th>学院号</th>
			<th>学院</th>
			<th>教师工号</th>
			<th>教师</th>
			<th colspan="3">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${depart.user_courses}" var="user_course" varStatus="status">
			<tr>
				<td>${status.count }</td>
				<td>${user_course.courseid}</td>
				<td>${user_course.coursename}</td>
				<td>${user_course.credit}</td>
				<td>${user_course.departid}</td>
				<td>${user_course.departname }</td>
				<td>${user_course.teacher }</td> 
				<td>${user_course.teachername }</td>
				<td><a href="selectCourseByParam.do?departid=${user_course.departid }">操作</a><a href="">查看名单</a></td>
			</tr>
		</c:forEach>
	</tbody>
	</table>
<script type="text/javascript">
$("table").find("tr").find("td:eq(1)").css('text-align','center');
</script>
</body>
</html>